package com.liuceng.zen.service;

import com.liuceng.zen.mapper.FrontGroupCreativeRelMapper;
import com.liuceng.zen.pojo.domain.FrontGroupCreativeRel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by lijunhao on 16-11-7.
 */
@Service
public class FrontGroupCreativeRelService extends BaseService<FrontGroupCreativeRel>{
    @Autowired
    private FrontGroupCreativeRelMapper frontGroupCreativeRelMapper;

    public List<FrontGroupCreativeRel> selectSelfCreative(Integer frontAdGroupId,Integer frontSelfOperateCreativeId){
        Map<String,Object> map = new HashMap<>();
        map.put("frontAdGroupId",frontAdGroupId);
        map.put("frontSelfOperateCreativeId",frontSelfOperateCreativeId);
        return frontGroupCreativeRelMapper.selectSelfCreative(map);
    }
}
